const express = require('express');

const app = express();

app.use((req, res, next) => {
  console.log('1');
  next();
  console.log('2');
});

app.use('/user', require('./router/user.js'));

app.use((req, res, next) => {
  console.log('3');
  next();
  console.log('4');
});

app.listen(80, () => {
  console.log('start at http://localhost');
});